package com.markedquilt.service.impl;
/*
 * PackageName: com.markedquilt.service.impl
 * Author:   coke
 * Date:     Created in 2020/10/26 02:56
 * Description:
 * History:
 * <author>        <time>             <version>          <desc>
 * 作者姓名         修改时间            版本号              描述
 * coke           2020/10/26 02:56     1.0
 */
import com.markedquilt.mapper.ResumeMapper;
import com.markedquilt.pojo.Resume;
import com.markedquilt.service.ResumeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author ZhangKe
 * @Description
 * @date 2020/10/26 02:56.
 */
@Service
@Transactional
public class ResumeServiceImpl implements ResumeService {

    @Autowired
    private ResumeMapper resumeMapper;

    @Override
    public List<Resume> queryResumeList() throws Exception {
        return resumeMapper.queryResumeList();
    }

    @Override
    public Resume queryById(int id) {
        return resumeMapper.queryById(id);
    }

    @Override
    public void deleteById(int id) {
        resumeMapper.deleteById(id);
    }

    @Override
    public void insertResume(Resume resume) {
        resumeMapper.insert(resume);
    }

    @Override
    public void updateResume(Resume resume) {
        resumeMapper.update(resume);
    }
}
